@import './variable.less';
.home {
    .banner{
        width: 100%;
        position: relative;
    }

    .block{
        position: relative;
        .mask{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.1);
        }
        img{
            width: 100%;
        }
    }

    .home-title{
        width: 100%;
        position: absolute;
        top: 0;
        z-index: 1000;
        text-align: center;
    }

    .title{
        text-align: center;
        letter-spacing: 20px;
        color: #fff;
        font-size: 50px;
        margin-top: 100px;
    }

    .realData{
        text-align: center;
        line-height: 50px;
        margin-top: 20px;
        color: #fff;
        font-size: 18px;
    }

    .search{
        margin: 30px auto;
        text-align: center;
        position: relative;

        ul{
            width: 700px;
            margin: 0 auto;
        
            li{
                float: left;
                margin-right: 30px;
                margin-bottom: 20px;
                cursor: pointer;
                color: #ddd;
                font-weight: bold;
                &:hover{
                    color: @theme;
                }
                &.active{
                    color: #fff;
                }
            }
        }

        b{
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid transparent;
            border-bottom: 10px solid #fff;
            position: absolute;
            top: 21px;
            left: 423px;
            transition: all 0.5s;
        }

        .el-button--primary{
            background-color: @theme;
            border-color: @theme;
        }
    }
    
    .search-box{
        width: 600px;
        border: none;
        padding: 15px 20px;
        font-size: 17px;
        outline: none;
    }

    .search-btn{
        height: 50px;
        width: 100px;
        vertical-align: top;
    }

    .recommend{
        width: 100%;
        margin-top: 20px;
    }
    
    .nav-card{
        width: 100%;
        padding-top: 50px;
        padding-bottom: 50px;
        background-color: #f8f8f8;
    }
    
    .card-info{
        display: flex;
    }

    .recommend-info{
        flex: 1;
        background-color: #fff;
        margin-right: 10px;
        cursor: pointer;
        &:last-child{
            margin-right: 0;
        }
        &:hover{
            transform: translateY(-5px);
            transition: all 0.5s;
        }
    }

    .info-img{
        width: 200px;
        height: 200px;
        margin: 20px auto;
        text-align: center;
        line-height: 200px;
        img{
            max-width: 150px;
            max-height: 150px;
            vertical-align: middle;
        }
    }

    .info-title{
        text-align: center;
        color: @theme;
    }

    .recommend-shh{
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .recommend-title{
        margin-bottom: 50px;
        h3{
            font-size: 26px;
        }
        .recommend-more{
            cursor: pointer;
            &:hover{
                color: @theme;
            }
        }
    }
    
    .recommend-card{
        display: flex;
        /deep/ .el-card__body{
            padding: 0;
        }
    }

    .recommend-img{
        img{
            width: 250px;
        }
    }

    .recommend-details{
        padding: 10px;

        div{
            border-top: 1px solid #ccc;
            margin-top: 20px;
            font-size: 12px;
            height: 20px;
            line-height: 50px;
        }
    }
    .type{
        margin-right: 10px;
    }
    .price{
        font-size: 16px;
        color: #e03236;
    }

    .recommend-estate{
        padding-top: 50px;
        padding-bottom: 50px;
        background-color: #f8f8f8;
    }

    .estate-info{
        position: relative;
        flex: 1;
        background-color: #fff;
        margin-right: 30px;
        &:last-child{
            margin-right: 0;
        }
        &:hover img{
            transform: scale(1.2);
            transition: all 1s;

        }
        .img{
            width: 100%;
            background-color: pink;
            display: table-cell;
            vertical-align: middle;
            overflow: hidden;
            img{
                max-width: 100%;
                display: block;
                margin: auto;
            }
        }
        .mask{
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.3);
            position: absolute;
            top: 0;
            left: 0;
        }
        .text{
            width: 100%;
            height: 62px;
            color: #fff;
            text-align: center;
            z-index: 1000;
            margin: 0 auto;
            position: absolute;
            top: 50%;
            margin-top: -31px;

            h1{
                cursor: pointer;
            }
        }
    }

    .recommend-renting{
        padding-top: 50px;
        padding-bottom: 50px;
    }

    // .el-backtop{
    //     color: @theme;
    // }


}